<nav class="navbar navbar-default hidden-xs" role="navigation">
    <div class="container">
        <div class="container-fluid" style="padding:0;">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
					<li><a href="/catalog">Каталог</a></li>
                    <li class="first dropdown">
                        <a class="dropdown-toggle" href="/catalog/mujskaya_obuv"><span class="iconfont xieno1"><img src="images/nanxie.png"/></span>Мужчинам </a>
                        <ul class="dropdown-menu no1" style="display:none;">
                            <{foreach from=$data.cat_first item=item key=key name="catfirst"}>
                            <li><a href="<{link app=b2c ctl=site_gallery act=index arg0=$item.cat_id}>"><{$item.cat_name}></a></li>
                            <{/foreach}>
                        </ul>
                    </li>
                    <li class="first dropdown">
                        <a class="dropdown-toggle" href="/catalog/jenskaya_obuv"><span class="iconfont nvxiebox"><img src="images/nvxie.png"/></span>Женщинам  </a>
                        <ul class="dropdown-menu no2" style="display:none;">
                            <{foreach from=$data.cat_second item=item key=key name="catsecond"}>
                            <li><a href="<{link app=b2c ctl=site_gallery act=index arg0=$item.cat_id}>"><{$item.cat_name}></a></li>
                            <{/foreach}>
                        </ul>
                    </li>
                    <li class="first dropdown">
                        <a class="dropdown-toggle" href="/catalog/detskaya_obuv"><span class="iconfont no3">
                            <img src="images/tongxie.png"/>
                        </span>Детям  </a>
                        <ul class="dropdown-menu no3" style="display:none;">
                            <{foreach from=$data.cat_third item=item key=key name="cat_third"}>
                            <li><a href="<{link app=b2c ctl=site_gallery act=index arg0=$item.cat_id}>"><{$item.cat_name}></a></li>
                            <{/foreach}>
                        </ul>
                    </li>

                    <li class="top-menu-new"><a href="/catalog/novinki">Новинки</a></li>
                     
                   <!--
                    <li><a href="/catalog/hit">Хиты продаж</a></li>
                    -->
                    <li><a href="/brands">Бренды</a></li>
                    <li><a href="/sale"><span class=" glyphicon glyphicon-star-empty"></span> Акции</a></li>
                    <li class="top-menu-sale"><a href="/catalog/specpredlojenie"> % Sale</a></li>
                    <li><a href="http://expo.qifa.ru/presale.html?utm_source=newsletter&utm_medium=banner&utm_campaign=qifa-main-menu" target="_blank">Предзаказ</a></li>
					 <li class="top-menu-express"><a href="/express-shipping">Экспресс-отгрузка</a></li>
                    <!--
                    <li><a href="/group/stok-shoes2017"> Сток</a></li>
                    -->
                    <!--<{foreach from=$data item=item key=key name=wgtmenu}>
                <{if $item.custom_url neq ''}>
                <li class="<{$item.act}>"><a href="<{$item.custom_url}>" <{if $item.target_blank eq 'true'}>target="_blank"<{/if}>><{$item.title}></a></li>
                <{else}>
                <li><a href="<{link app=$item.app ctl=$item.ctl act=$item.act args=$item.params full=1 }>" <{if $item.target_blank eq 'true'}>target="_blank"<{/if}>><{$item.title}></a></li>
                <{/if}>
                <{/foreach}>-->
                </ul>

            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </div>
</nav>
<!--
<pre>
<{$data|print_r}>
</pre>
-->
<script>
    (function(){
        var url =location.href.split('/').getLast();
        if(!url.trim().length || url == 'index.php' || url == 'index') url='index.php/index';
        var reg=new RegExp('\/'+url,'i');
        var menulist = $$('.nav-item a');
        menulist.each(function(el){
            if(el&&el.href.test(reg))el.addClass('active');
        });
    })();
    /*导航js--------------------------------------------------------------------zz*/
    jQuery(function(){
        jQuery('.first.dropdown').hover(function() {
            jQuery(this).children(".dropdown-menu").css('display', 'block');
        }, function() {
            jQuery(this).children(".dropdown-menu").css('display', 'none');
        });
    });

</script>
